QT       += core gui sql

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++14

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    homepage.cpp \
    main.cpp \
    mainwindow.cpp \
    page/common_page/login/loginpage.cpp \
    page/common_page/setting/settingspage.cpp \
    page/manager_page/log/logdetail.cpp \
    page/manager_page/material/materialdetail.cpp \
    page/manager_page/user_manage/usermanagement.cpp \
    page/manager_page/warehouse_permission/warehousepermission.cpp \
    page/user_page/material/materialaccess.cpp \
    page/user_page/material/service/materialservice.cpp \
    page/user_page/material/service/warehouseservice.cpp \
    page/user_page/material/style/styledtableview.cpp \
    page/user_page/material/style/styledtreeview.cpp \
    page/user_page/personal/personal.cpp \
    util/database/databasemanager.cpp \
    util/database/sqlgenerator.cpp


HEADERS += \
    constant/DBTableConfig.h \
    homepage.h \
    mainwindow.h \
    materialvo.h \
    page/common_page/login/loginpage.h \
    page/common_page/setting/settingspage.h \
    page/manager_page/log/logdetail.h \
    page/manager_page/material/materialdetail.h \
    page/manager_page/user_manage/usermanagement.h \
    page/manager_page/warehouse_permission/warehousepermission.h \
    page/user_page/material/materialaccess.h \
    page/user_page/material/service/materialservice.h \
    page/user_page/material/service/warehouseservice.h \
    page/user_page/material/style/styledtableview.h \
    page/user_page/material/style/styledtreeview.h \
    page/user_page/personal/personal.h \
    pogo/entity/inventory.h \
    pogo/entity/log/baselog.h \
    pogo/entity/log/errorlog.h \
    pogo/entity/log/logfactory.h \
    pogo/entity/log/operationlog.h \
    pogo/entity/material.h \
    pogo/entity/shelf.h \
    pogo/entity/user.h \
    pogo/entity/warehouse.h \
    pogo/entity/warehousepermission.h \
    pogo/vo/materialvo.h \
    pogo/vo/warehousevo.h \
    util/database/databasemanager.h \
    util/database/sqlgenerator.h


FORMS += \
    homepage.ui \
    mainwindow.ui \
    page/common_page/login/loginpage.ui \
    page/common_page/setting/settingspage.ui \
    page/manager_page/log/logdetail.ui \
    page/manager_page/material/materialdetail.ui \
    page/manager_page/user_manage/usermanagement.ui \
    page/manager_page/warehouse_permission/warehousepermission.ui \
    page/user_page/material/materialaccess.ui \
    page/user_page/material/style/styledtableview.ui \
    page/user_page/material/style/styledtreeview.ui \
    page/user_page/personal/personal.ui


# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    resources.qrc \
    resources.qrc


DISTFILES += \
    static_res/images/logo.ico \
    static_res/images/logo.png
